// Includes
#include "Color.h"

namespace EraAstral
{
	// Color4f class constructor
	Color4f::Color4f()
		: R(m_data[0]), G(m_data[1]), B(m_data[2]), A(m_data[3])
	{
	}
	
	// Constructor setting components
	Color4f::Color4f(float r, float g, float b, float a)
		: R(m_data[0]), G(m_data[1]), B(m_data[2]), A(m_data[3])
	{
		m_data[0] = r;
		m_data[1] = g;
		m_data[2] = b;
		m_data[3] = a;
	}
	
	// Color4f class destructor
	Color4f::~Color4f()
	{
	}
	
	// Sets the color
	void Color4f::Set(const Color4f& color)
	{
		for (int i = 0; i < 4; i++)
			m_data[i] = color.m_data[i];
	}
	
	// Gets a pointer to the color data
	const float *Color4f::GetData() const
	{
		return m_data;
	}
}